package org.metasketch.editor.toolbox;

import java.util.HashMap;
import java.util.Map;

public class ToolNameRegistry {

	Map<String, String> toolNamePerType = new HashMap<String, String>();
	Map<String, String> toolIconPerType = new HashMap<String, String>();

	public void register(String type, String toolName, String icon) {
		toolNamePerType.put(type, toolName);
		toolIconPerType.put(type, icon);
	}

	public String getName(String type) {
		return toolNamePerType.get(type);
	}

	public String getIcon(String type) {
		return toolIconPerType.get(type);
	}

}
